package mspbots.cw.business.core.tickets;

import org.springframework.data.r2dbc.repository.R2dbcRepository;
import reactor.core.publisher.Flux;

/**
 * @author Jay.Yang
 */
public interface TicketTaskRepository extends R2dbcRepository<TicketTask, Long> {
    /**
     * find entity other id and tenant id
     *
     * @param ticketId     ticketId
     * @param tenantCode tenantCode
     */
    Flux<TicketTask> findByTicketIdAndTenantCode(Long ticketId, Long tenantCode);

}
